﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Galaktika.BI.Silverlight.Controls.PivotGrid.Data;

namespace Galaktika.BI.Silverlight.Controls.PivotGrid.Controls
{
    public class ColumnMemberControl : MemberControl
    {
        public ColumnMemberControl(MemberInfo info, int drillDownDepth) 
            : base(info)
        {
            Margin = new Thickness(0, drillDownDepth * MembersAreaContol.DRILLDOWN_SPACE_HEIGHT, 0, 0);

//            Border border = LayoutRoot;
            
//            int right_Offs = Member.DrilledDownChildren.Count > 0 ? 0 : MembersAreaContol.SPLITTER_SIZE;    
//            border.BorderThickness = new Thickness(0, 0, 1 + right_Offs, 1 + MembersAreaContol.SPLITTER_SIZE);
            

            if (drillDownDepth > 0)
            {
                ShowUpBorder();
            }
        }

    }
}
